package com.ming_za.od_updater_sdk.event;

import com.ming_za.od_updater_sdk.obj.Res;

public class PreUpdateEvent extends UpdateEvent{

    /**
     * 是否取消更新,通过{@link #setCancel(boolean)}开启
     * <p>如果true将拦截当前资源更新</p>
     */
    private boolean cancel = false;

    public PreUpdateEvent(Res res, int version) {
        super(res, version);
    }

    public boolean isCancel() {
        return cancel;
    }

    public void setCancel(boolean cancel) {
        this.cancel = cancel;
    }
}
